<?php /* Smarty version 2.6.13, created on 2011-10-05 02:52:13
         compiled from product_group.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'product_group.tpl', 27, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript">
<?php echo '
$(document).ready(function() {
	$("a[rel=product_group]").fancybox({
				\'transitionIn\'		: \'none\',
				\'transitionOut\'		: \'none\',
				\'titlePosition\' 	: \'over\',
				\'titleFormat\'		: function(title, currentArray, currentIndex, currentOpts) {
					return \'<span id="fancybox-title-over">\' + (currentIndex + 1) + \' / \' + currentArray.length + (title.length ? \' &nbsp; \' + title : \'\') + \'</span>\';
				}
			});
});
  

'; ?>

</script>
<div class="wrapperbody">
	<div class="fr_body paddingleft-page">
    	<div class="title_page"><?php echo $this->_tpl_vars['PRODUCTINFO']->page_name; ?>
</div>
    	<div class="left leftside">
               <div class="treeview" id="treeview">
                	<ul>
                     <?php $_from = $this->_tpl_vars['CAT']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['producthot'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['producthot']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['item']):
        $this->_foreach['producthot']['iteration']++;
?>
                            <?php if ($this->_tpl_vars['item']->sub != ''): ?>	
                            <li class="<?php echo $this->_tpl_vars['item']->active; ?>
"><a class="<?php echo smarty_function_cycle(array('values' => ",gold"), $this);?>
"><?php echo $this->_tpl_vars['item']->cat_name; ?>
</a>
                            <ul>
                                <?php $_from = $this->_tpl_vars['item']->sub; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['sub'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['sub']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['subitem']):
        $this->_foreach['sub']['iteration']++;
?>
                                    <li class="<?php echo $this->_tpl_vars['subitem']->active; ?>
"><a href="<?php echo $this->_tpl_vars['subitem']->catlinkchange; ?>
" class="gold"><?php echo $this->_tpl_vars['subitem']->cat_name; ?>
</a></li>	
                                <?php endforeach; endif; unset($_from); ?>
                                </ul>
                                
                            <?php else: ?>
                            	<li class="<?php echo $this->_tpl_vars['item']->active; ?>
"><a href="<?php echo $this->_tpl_vars['item']->catlinkchange; ?>
" class=""><?php echo $this->_tpl_vars['item']->cat_name; ?>
</a></li>
                            <?php endif; ?>			                
                      <?php endforeach; endif; unset($_from); ?>
                     </ul> 	
                </div>
               <script type="text/javascript">
			   <?php echo '
                ddtreemenu.createTree("treeview", true)
				'; ?>

            </script>
                <div class="productshortinfo">
                	<?php echo $this->_tpl_vars['PRODUCTINFO']->page_content; ?>
	               

                </div>
        </div>
        <div class="rightside">	
        	<div class="fr-product">
            	<div class="titlename"><?php echo $this->_tpl_vars['titlename']; ?>
</div>	
                <?php if ($this->_tpl_vars['PRODUCT']): ?>
                        <div class="fr_list_product">
                        	<div id="sliderpro" class="silderimg">
                            	<?php $_from = $this->_tpl_vars['PRODUCT']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['producthot'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['producthot']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['item']):
        $this->_foreach['producthot']['iteration']++;
?>
                                	<?php echo $this->_tpl_vars['k']; ?>

                                	<img src="<?php echo $this->_tpl_vars['WPATH'];  echo $this->_tpl_vars['PATH'];  echo $this->_tpl_vars['item']->product_image; ?>
" <?php if ($this->_tpl_vars['k'] == '0'): ?> style="display:none"<?php endif; ?> alt="" border="0" title="<?php echo $this->_tpl_vars['item']->product_name; ?>
" class="thumbimg">
                               	<?php endforeach; endif; unset($_from); ?>
                            </div>
                           
                            <br class="clear" />
                        </div>
                <?php endif; ?>	  
                <?php if ($this->_tpl_vars['PRODUCT']['TOTALPAGE'] > '1'): ?>
                <div>			
                                
                          <div style="text-align:right; float:right" ><?php echo $this->_tpl_vars['PRODUCT']['FIRST']; ?>
 <?php echo $this->_tpl_vars['PRODUCT']['PRE']; ?>
&nbsp;<?php echo $this->_tpl_vars['PRODUCT']['LISTPAGE']; ?>
  <?php if ($_SESSION['LC_ALL'] == 'en'): ?>Pages<?php else: ?>Trang<?php endif; ?> &nbsp; <?php echo $this->_tpl_vars['PRODUCT']['TOTALPAGE']; ?>
 &nbsp;                   
                              &nbsp;<?php echo $this->_tpl_vars['PRODUCT']['NEXT']; ?>
 <?php echo $this->_tpl_vars['PRODUCT']['LAST']; ?>
         
                          </div>
                          <div style="clear:both"></div>		
                </div>	     
                <?php endif; ?>	
        	</div>        
        </div>   
        <div class="clear"></div>
    </div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>        